package com.mc.read.dao.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ClickpluginfunctionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClickpluginfunctionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andClickpluginfunctionidIsNull() {
            addCriterion("clickpluginfunctionid is null");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidIsNotNull() {
            addCriterion("clickpluginfunctionid is not null");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidEqualTo(Integer value) {
            addCriterion("clickpluginfunctionid =", value, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidNotEqualTo(Integer value) {
            addCriterion("clickpluginfunctionid <>", value, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidGreaterThan(Integer value) {
            addCriterion("clickpluginfunctionid >", value, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidGreaterThanOrEqualTo(Integer value) {
            addCriterion("clickpluginfunctionid >=", value, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidLessThan(Integer value) {
            addCriterion("clickpluginfunctionid <", value, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidLessThanOrEqualTo(Integer value) {
            addCriterion("clickpluginfunctionid <=", value, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidIn(List<Integer> values) {
            addCriterion("clickpluginfunctionid in", values, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidNotIn(List<Integer> values) {
            addCriterion("clickpluginfunctionid not in", values, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidBetween(Integer value1, Integer value2) {
            addCriterion("clickpluginfunctionid between", value1, value2, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andClickpluginfunctionidNotBetween(Integer value1, Integer value2) {
            addCriterion("clickpluginfunctionid not between", value1, value2, "clickpluginfunctionid");
            return (Criteria) this;
        }

        public Criteria andFuncationnameIsNull() {
            addCriterion("funcationname is null");
            return (Criteria) this;
        }

        public Criteria andFuncationnameIsNotNull() {
            addCriterion("funcationname is not null");
            return (Criteria) this;
        }

        public Criteria andFuncationnameEqualTo(String value) {
            addCriterion("funcationname =", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameNotEqualTo(String value) {
            addCriterion("funcationname <>", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameGreaterThan(String value) {
            addCriterion("funcationname >", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameGreaterThanOrEqualTo(String value) {
            addCriterion("funcationname >=", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameLessThan(String value) {
            addCriterion("funcationname <", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameLessThanOrEqualTo(String value) {
            addCriterion("funcationname <=", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameLike(String value) {
            addCriterion("funcationname like", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameNotLike(String value) {
            addCriterion("funcationname not like", value, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameIn(List<String> values) {
            addCriterion("funcationname in", values, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameNotIn(List<String> values) {
            addCriterion("funcationname not in", values, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameBetween(String value1, String value2) {
            addCriterion("funcationname between", value1, value2, "funcationname");
            return (Criteria) this;
        }

        public Criteria andFuncationnameNotBetween(String value1, String value2) {
            addCriterion("funcationname not between", value1, value2, "funcationname");
            return (Criteria) this;
        }

        public Criteria andClickcountIsNull() {
            addCriterion("clickcount is null");
            return (Criteria) this;
        }

        public Criteria andClickcountIsNotNull() {
            addCriterion("clickcount is not null");
            return (Criteria) this;
        }

        public Criteria andClickcountEqualTo(Integer value) {
            addCriterion("clickcount =", value, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountNotEqualTo(Integer value) {
            addCriterion("clickcount <>", value, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountGreaterThan(Integer value) {
            addCriterion("clickcount >", value, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("clickcount >=", value, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountLessThan(Integer value) {
            addCriterion("clickcount <", value, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountLessThanOrEqualTo(Integer value) {
            addCriterion("clickcount <=", value, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountIn(List<Integer> values) {
            addCriterion("clickcount in", values, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountNotIn(List<Integer> values) {
            addCriterion("clickcount not in", values, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountBetween(Integer value1, Integer value2) {
            addCriterion("clickcount between", value1, value2, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickcountNotBetween(Integer value1, Integer value2) {
            addCriterion("clickcount not between", value1, value2, "clickcount");
            return (Criteria) this;
        }

        public Criteria andClickdayIsNull() {
            addCriterion("clickday is null");
            return (Criteria) this;
        }

        public Criteria andClickdayIsNotNull() {
            addCriterion("clickday is not null");
            return (Criteria) this;
        }

        public Criteria andClickdayEqualTo(Date value) {
            addCriterion("clickday =", value, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayNotEqualTo(Date value) {
            addCriterion("clickday <>", value, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayGreaterThan(Date value) {
            addCriterion("clickday >", value, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayGreaterThanOrEqualTo(Date value) {
            addCriterion("clickday >=", value, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayLessThan(Date value) {
            addCriterion("clickday <", value, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayLessThanOrEqualTo(Date value) {
            addCriterion("clickday <=", value, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayIn(List<Date> values) {
            addCriterion("clickday in", values, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayNotIn(List<Date> values) {
            addCriterion("clickday not in", values, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayBetween(Date value1, Date value2) {
            addCriterion("clickday between", value1, value2, "clickday");
            return (Criteria) this;
        }

        public Criteria andClickdayNotBetween(Date value1, Date value2) {
            addCriterion("clickday not between", value1, value2, "clickday");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}